<?php
	
	function checkSession(){
		session_start();
		if (!isset($_SESSION['Nombre'])) {
			echo "<script language='javascript'>
					alert('Tratas de entrar a una zona restringida registrate primero');
					parent.location.replace('http://localhost/IRENK/');
				  </script>";
		}
	}
	
	function opePage(){
		if($_SESSION['Tipo'] != "Operadora"){
			return false;
		}else{
			return true;
		}
	}
	
	function hotPage(){
		if($_SESSION['Tipo'] != "Hotel"){
			return false;
		}else{
			return true;
		}
	}
	
	function agenPage(){
		if($_SESSION['Tipo'] != "Agencia"){
			return false;
		}else{
			return true;
		}
	}
?>